FROM adoptopenjdk/openjdk11:latest
MAINTAINER zhanghui <zhanghui4j@163.com>

#COPY build/libs/service-api-gateway.jar /app/service-api-gateway.jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /hukunamatata-nacos

WORKDIR /hakunamatata-nacos

EXPOSE 8848

#ADD ./target/jeecg-cloud-nacos-3.6.2.jar ./
COPY target/hakunamatata-nacos.jar /hakunamatata-nacos

#CMD ["-jar",  "hakunamatata-nacos.jar"]
CMD sleep 1;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar hakunamatata-nacos.jar